<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>用户管理</title>
		<%@ include file="/common/meta.jsp"%>
		<link href="${ctx}/css/css.css" rel="stylesheet" type="text/css" />
		<script src="${ctx}/js/jquery.js" type="text/javascript"></script>
		<script src="${ctx}/js/table.js" type="text/javascript"></script>
	</head>
	<body>
		<form id="mainForm" method="get" action="../security/user.action">
			<div id="main">
				<div class="x-panel-header">
					用户管理列表
				</div>
				<div class="x-panel-mr">
					<div class="x-panel-mc">
						<div class="x-panel-tbar">
							<div class="x-toolbar">
								搜索用户
							</div>
							<table class="table-normal">
								<tr>
									<td>
										<label>
											用户名
										</label>
									</td>
									<td>
										<input type="text" name="filter_LIKE_loginName" size="10"
											class="text" value="${param['filter_LIKE_loginName'] }" />
									</td>
									<td>
										<label>
											邮箱
										</label>
									</td>
									<td>
										<input type="text" name="filter_LIKE_email" size="10"
											class="text" value="${param['filter_LIKE_email'] }" />
									</td>
									<td>
										<input type="submit" value="搜索" class="tel_button" />
									</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
				<div class="split">
				</div>
				<div class="x-panel-mr">
					<div class="x-panel-mc">
						<div class="x-panel-tbar">
							<div class="x-toolbar" id="">
								用户列表
							</div>
							<table class="table-normal">
								<tr class="rightframe-tr">
									<td class="rightframe-th rightframe-eightpercent" width="5%">
										序号
									</td>
									<td class="rightframe-th rightframe-eightpercent" width="9%">
										<a href="javascript:sort('loginName','asc')"><b>用户名</b> </a>
									</td>
									<td class="rightframe-th rightframe-eightpercent" width="10%">
										<a href="javascript:sort('name','asc')"><b>真实姓名</b> </a>
									</td>
									<td class="rightframe-th rightframe-eightpercent" width="11%">
										<a href="javascript:sort('email','asc')"><b>邮箱</b> </a>
									</td>
									<td class="rightframe-th rightframe-eightpercent" width="10%">
										操作
									</td>
								</tr>
								<s:iterator value="page.result" status="status">
									<tr class="rightframe-tr-body">
										<td class="rightframe-td">
											${status.count }
										</td>
										<td class="rightframe-td" align="center">
											${loginName }
										</td>
										<td class="rightframe-td" align="center">
											${name }
										</td>
										<td class="rightframe-td" align="center">
											${email }
										</td>
										<td class="rightframe-td" align="center">
											<a href="user!input.action?id=${id}"><img title="修改"
													border="0" src="${ctx}/images/default/grid/edit_1.png" />
											</a>
											<a href="user!delete.action?id=${id}"><img title="删除"
													border="0" src="${ctx}/images/default/grid/del.png" /> </a>
										</td>
									</tr>
								</s:iterator>
								<!-- 
								<tr class="table-tr-page">
									<td class="rightframe-td" colspan="10">
										<a href="javascript:jumpPage(1)">首页</a>
										<s:if test="page.hasPre">
											<a href="javascript:jumpPage(${page.prePage})">上一页</a>
										</s:if>
										<s:if test="page.hasNext">
											<a href="javascript:jumpPage(${page.nextPage})">下一页</a>
										</s:if>
										<a href="javascript:jumpPage(${page.totalPages})">末页</a>
										<a href="user!input.action">增加新用户</a>
									</td>
								</tr>
								-->
								<tr class="table-tr-page">
									<td class="rightframe-td" colspan="10">
										<a class="gt-image-button <s:if test="!page.hasFirst">gt-button-disable</s:if>"
										 	href="javascript:jumpPage(1);" title="首页">
											<div class="gt-first-page"></div> </a>
										<a class="gt-image-button <s:if test="!page.hasPre">gt-button-disable</s:if>"
											href="javascript:jumpPage(${page.prePage});" title="上一页">
											<div class="gt-prev-page"></div> </a>
										<a class="gt-image-button <s:if test="!page.hasNext">gt-button-disable</s:if>"
											href="javascript:jumpPage(${page.nextPage});" title="下一页">
											<div class="gt-next-page"></div> </a>
										<a class="gt-image-button <s:if test="!page.hasLast">gt-button-disable</s:if>"
											href="javascript:jumpPage(${page.totalPages});" title="末页">
											<div class="gt-last-page"></div> </a>
										<a class="gt-image-button"
											href="javascript:jumpAppointed();" title="跳转到指定的页">
											<div class="gt-goto-page"></div> </a>
										<div class="gt-toolbar-text">
											第
										</div>
										<div>
											<input id="appionted" class="gt-page-input" type="text" maxlength="2" value="${page.pageNo }"/>
										</div>
										<div class="gt-toolbar-text">
											页
										</div>
										<div class="gt-button-split"></div>
										<div class="gt-toolbar-text">
											每页
										</div>
										<div>
											<select class="gt-pagesize-select"
												style="visibility: inherit;">
												<option value="5">
													5
												</option>
												<option value="10">
													10
												</option>
												<option value="15">
													15
												</option>
												<option value="20">
													20
												</option>
											</select>
										</div>
										<div class="gt-toolbar-text">
											条
										</div>
										<div class="gt-button-split"></div>
										<a href="javascript:reload();" title="刷新">
											<div class="gt-tool-reload"></div> </a>
										<div class="gt-button-split"></div>
										<a class="gt-image-button"
											href="user!input.action" title="添加新用户">
											<div class="gt-tool-add"></div> </a>
										<div class="gt-page-state">
											<div>
												第${page.startNo} - ${page.endNo}条, 共 ${page.pageCount}页 ${page.totalCount}条数据
											</div>
										</div>
									</td>
								</tr>
								<input type="hidden" name="page.pageNo" id="pageNo"
									value="${page.pageNo}" />
								<input type="hidden" name="page.orderBy" id="orderBy"
									value="${page.orderBy}" />
								<input type="hidden" name="page.order" id="order"
									value="${page.order}" />
							</table>
						</div>
					</div>
				</div>
			</div>
		</form>
		<script>
	
</script>
	</body>
</html>

